#include once "vbcompat.bi"

const G2001 = "G2001"
const G2211 = "G2211"
const G2231 = "G2231"
const G2452 = "G2452"
const G2553 = "G2553"
const G2xx =  "G2xx"
const F2xx = "F2xx"
const G5xx = "G5xx"
const gccpath = "bin/compile/msp430/bin/gcc.exe"

dim codesource as string
dim sourcetext as string
dim codeoutput as string
dim device as string
dim options as string
dim result as string
dim tool as string
dim autoload as string
'=============

start:
print "EasyMSP msp430-gcc frontend ver. 0.1.2"
print "Copyright Matthew Burmeister 2011. All Rights Reserved."
print "-------------------------------------------------------"
print " "
print "Looking for gcc..."

if fileExists(gccpath) then
    print "gcc found."
else
    print "gcc NOT found. Aborting."
    sleep 2000
    end
end if

print ""
print "Looking for loader..."

if fileExists("loader.exe") then
    print "loader found."
else
    print "loader NOT found. Aborting."
    sleep 2000
    end
end if

print " "
print "Seems like we have everything we need."
print ""
input "Source>", codesource
